package cn.lin.factory.command;
/**
 * @author liufl E-mail:Huberier@allpyra.com
 * @version 创建时间：2017年8月22日 下午3:27:14
 * 类说明
 */
public class CommandSender {

	private CommandMode playMode;
	
	private CommandMode stopMode;

	public CommandMode getPlayMode() {
		return playMode;
	}

	public void setPlayMode(CommandMode playMode) {
		this.playMode = playMode;
	}

	public CommandMode getStopMode() {
		return stopMode;
	}

	public void setStopMode(CommandMode stopMode) {
		this.stopMode = stopMode;
	}
	
	public void doPlay(){
		playMode.operation();
	}
	
	public void doStop(){
		stopMode.operation();
	}
}

